package zgame.bean;

public class RankItem {
	private User user;
	private int position;
	private int pointLeft;
	private int finalPoint;
	private boolean isAntagonistic = false;
	
	public boolean isAntagonistic() {
		return isAntagonistic;
	}

	public void setAntagonistic(boolean isAntagonistic) {
		this.isAntagonistic = isAntagonistic;
	}

	public RankItem(User _user, int _position, int _pointLeft)
	{
		this(_user,_position,0,_pointLeft);
		setAntagonistic(true);
	}
	
	public RankItem(User _user, int _position, int _pointLeft, int _finalPoint)
	{
		setUser(_user);
		position = _position;
		pointLeft = _pointLeft;
		setFinalPoint(_finalPoint);
		setAntagonistic(false);
	}
	
	public RankItem()
	{
		this(null, -1, 0);
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @param position the position to set
	 */
	public void setPosition(int position) {
		this.position = position;
	}
	/**
	 * @return the position
	 */
	public int getPosition() {
		return position;
	}
	/**
	 * @param pointLeft the pointLeft to set
	 */
	public void setPointLeft(int pointLeft) {
		this.pointLeft = pointLeft;
	}
	/**
	 * @return the pointLeft
	 */
	public int getPointLeft() {
		return pointLeft;
	}

	public void setFinalPoint(int finalPoint) {
		this.finalPoint = finalPoint;
	}

	public int getFinalPoint() {
		return finalPoint;
	}
}
